package owl2vowl.model.data;

import owl2vowl.model.entities.AbstractEntity;
import java.util.HashMap;
import java.util.Map;

class AllEntityMap<K, V extends AbstractEntity> extends HashMap<K, V> {
	private HashMap<K, V> mergeMap;

	public <Val extends AbstractEntity> AllEntityMap(Map<K, Val> mergeMap) {
		this.mergeMap = (HashMap) mergeMap;
	}

	public V put(K key, V value) {
		super.put(key, value);
		this.mergeMap.put(key, value);
		return value;
	}
}